﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MasterPage.master" AutoEventWireup="true" CodeFile="NoReplyQuestion.aspx.cs" Inherits="Manage_NoReplyQuestion" %>
<%@ Register Src="~/Manage/CmsMessageBox.ascx" TagName="MessageBox" TagPrefix="cms" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('#<%=Save.ClientID %>').click(function () {
                var ds = [
                    { 'Controller': '#<%=Description.ClientID %>',
                        'Type': 'R', 'Clear': true, 'Focus': true,
                        'ErrorMessage': '请输入不回答该问题的原因。'
                    }, { 'Controller': '#<%=Description.ClientID %>',
                        'Type': 'RNG',
                        'ErrorMessage': '请将不回答该问题原因的字数控制在30字以内。',
                        'Clear': false,
                        'Focus': true,
                        'Size': 0,
                        'Size2': 30
                    }
                    ];

                return Cms_ValidateForm(ds);
            });
        });
    </script>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="body" Runat="Server">
    <cms:MessageBox ID="MessageBox" runat="server" />
    <asp:HiddenField ID="QuestionID" runat="server" />
    <table class="Info" cellspacing="1">
        <tr>
            <td align="right" style="width: 100px">问题标题：</td>
            <td><asp:Label ID="QuestionTitle" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td align="right">问题内容：</td>
            <td><asp:Label ID="QuestionMemo" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td align="right">不回答原因：</td>
            <td>
                <asp:TextBox ID="Description" runat="server" TextMode="MultiLine" Width="500px" Height="50px"></asp:TextBox>
                <br />
                <font color="#ff0000">注：请将字数控制在30字以内。</font>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Button ID="Save" runat="server" Text="保存" 
                    onclick="Save_Click"/>
            </td>
        </tr>
    </table>
</asp:Content>

